<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><!-- #BeginTemplate "/Templates/class.dwt" -->
<head>
<!-- #BeginEditable "doctitle" --> 
<title>WIKINDX CLASS DOCUMENTATION</title>
<!-- #EndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="/wikindx2/docs/docs.css" type="text/css" />
</head>

<body bgcolor="#FFFFFF" text="#000000">
<h2>WIKINDX CLASSES</h2>
<h3><!-- #BeginEditable "className" -->
PAGING
<!-- #EndEditable -->
</h3>
<p><strong>Class Call:</strong><br />
  <!-- #BeginEditable "classCall" -->
 include_once(&quot;core/paging/PAGING.php&quot;);<br />
 new PAGING(DATABASE OBJECT: $db, ASSOC_ARRAY: $vars, SQL_SELECT_STMT: $sqlTotalString);
 <!-- #EndEditable -->
 </p><strong>Description:</strong><br />
  <!-- #BeginEditable "classDescription" -->
$db is the database object created in index.php and $vars is an associative array of user input also obtained in 
index.php.
<p>
$sqlTotalString is a SQL SELECT string defining the total number of resources in the paging system <b>before</b> it is 
broken down to smaller pages.
</p>
<p>
The constructor of this class reads default/user preferences for paging from the session. Additionally, the constructor will set the session variable <em>links_allIds</em> which is used when showing a single resource to display <em>previous</em> and <em>next</em> hyperlinks. </p>
<p>Used, for example, when displaying long lists of resources to break them up into several web pages.  PAGING provides 
hyperlinks on each of those pages to navigate backwards and forwards through the list.</p>
<p>This class and its appropriate methods are called from the LISTCOMMON::listResources() method so there is usually no need for the developer to call it explicitly.</p>
  <!-- #EndEditable-->
<p><strong>Methods:</strong><br />
<!-- #BeginEditable "methodList" -->
<a href="linksMethod.html">links()</a><br />
<a href="linksinfoMethod.html">linksInfo()</a><br />
<a href="sqllimitMethod.html">sqlLimit()</a><br />
<!-- #EndEditable -->
  </p>
<p align="right"><a href="../../index.html">WIKINDX home</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="../../usage/index.html">WIKINDX usage</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="../index.html">WIKINDX classes</a>
</p>
</body>
<!-- #EndTemplate --></html>
